package com.example2016.cjj.mycustomviewdemo;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.Toast;

public class CustomScrollerViewActivity extends AppCompatActivity {
    private static final String TAG = "CustomScrollerViewActiv";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom_scroller_view);

        ImageView iv1 = (ImageView) findViewById(R.id.scroll_view_iv1);
        iv1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(CustomScrollerViewActivity.this, "iv1 diajile", Toast.LENGTH_SHORT).show();
            }
        });


        ImageView iv2 = (ImageView) findViewById(R.id.scroll_view_iv2);
//        iv2.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Log.i(TAG, "onClick: zijixiaohaole");
//               // Toast.makeText(CustomScrollerViewActivity.this, "iv1 diajile", Toast.LENGTH_SHORT).show();
//            }
//        });

    }
}
